#ifndef __BACKPLAYER__
#define __BACKPLAYER__
#include <iostream>
#include "chessBoard.h"
#include "backcheckerboard.h"
#include "player.h"
class BackPlayer:public Player{
	public:
		BackPlayer(const string &name):Player(name,"back"){};
		int checkPlay(const int x,const int y){
			ChessBoard *chessBoard=ChessBoard::getChessBoard();
			if(chessBoard->ischeck(x,y)){
				Backcheckerboard *backcheckerboard=new Backcheckerboard(x,y);
				chessBoard->chessPlay(backcheckerboard);
				return 1;
			}else{
				return 0;
			}
		
		}
};
#endif
